enyo.kind({
	name: "enyo.Config",
	statics: {
		/*If useLocalCacheAll = true and useLocalCache = true, the local cache will be used.
		You may switch to production by simply setting  useLocalCacheAll = false.
		*/
		useLocalCacheAll: false,
		
		/*if useLoginEnable = true: login first, you can develop with emulator
		  else if useLoginEnable = False: igore the login, you can develop with chrome*/
		useLoginEnable: true,
		
		/* Base Url of the service */
		baseServiceUrl: "http://16.155.213.18:8080/analysisproxy-1.0/",
		
		getBaseServiceUrl: function() {
			return enyo.Config.baseServiceUrl;
		},
		
		getCommonServiceHeader : function() {
			return { "X-HP-SBS-ApplicationId": "sharedbusws1", 
				"X-HP-SBS-ApplicationKey": "N3v3rsurr3nd3r", 
				"X-HP-SBS-TestRequest": "false", 
				"X-HP-SBS-SessionContext": "3999e3e6-782f-4354-85ed-7d43d3e0a4ff" 
			};
		},
		
		getServiceUrl_RetrieveAnalysisTypes: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/retrieveAllListAnalysisTypeProxy.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "retrieveAllListAnalysisTypeProxy";
			}
		},
		
		getServiceUrl_RetrieveCountryCities: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/retrieveCountryCitiesProxy.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "retrieveCountryCitiesProxy";
			}
		},
		
		getServiceUrl_RetrieveCustomers: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/retrieveCustomerByCountryNameByCityNameProxy.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "retrieveCustomerByCountryNameByCityNameProxy";
			}
		},
		
		getServiceUrl_RetrieveDevices: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/retrieveDevicesPaginationByCustomerOrgSiteIntKeyProxy.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "retrieveDevicesPaginationByCustomerOrgSiteIntKeyProxy";
			}
		},
		
		getServiceUrl_CreateAnalysisRequest: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/createMultAnalysisRequestProxy.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "createMultAnalysisRequestProxy";
			}
		},
		
		getServiceUrl_RetrieveRequestList: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/temp_RequestList.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "n/a";
			}
		},
		
		getServiceUrl_RetrieveRunList: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/retrieveAnalysisRunSBSPaginationByRequestNotificationRecipientIdentifier.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "retrieveAnalysisRunSBSPaginationByRequestNotificationRecipientIdentifier";
			}
		},
		
		getServiceUrl_RetrieveReportList: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/retrieveListAnalysisReportDataByAnalysisRunIdProxy.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "retrieveListAnalysisReportDataByAnalysisRunIdProxy";
			}
		},
		
		getServiceUrl_GetReport: function() {
			var useLocalCache = true;
			if(enyo.Config.useLocalCacheAll && useLocalCache) {
				return "dummy_data/getReport.json";
			} else {
				return enyo.Config.getBaseServiceUrl() + "getReportSystemOverview";
			}
		},
	}
});